<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<!--一个基本的 html表格-->
<h2>你所查询的用户:</h2>
<h2 th:text="${name}"></h2>
<h2>选课信息如下：</h2>
<table border="1px" cellspacing="0px">
    <tr>
        <th th:width="40px">课程号</th>
        <th th:width="40px">课程名</th>
        <th th:width="150px">学分</th>

    </tr>

    <tr th:each="course:${courseList}">
        <td th:text="${course.id}"></td>
        <td th:text="${course.c_name}"></td>
        <td th:text="${course.score}"></td>
    </tr>
</table>
</body>
</html>